home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / edit / jed207.lha / macros / indent < prev    next >
Text File  |  1993-01-09  |  354b  |  28 lines

  1.  
  2. ;
  3. ; INDENT
  4. ;
  5. ; keybindings for Allman-style C indentation,
  6. ;
  7.  
  8. (bind `alt \{'
  9. {
  10.     ; If you prefer K&R style indents change the next command to
  11.     ; (move `r' 1)
  12.     (split)
  13.     (insert `a' ~\{)
  14.     (split)
  15.     (insert `a' ~\})
  16.     (move `u' 1)
  17.     (split)
  18.     (move `rt' 1)
  19. })
  20.  
  21. (bind `alt \}'
  22. {
  23.     (find `s' `\}')
  24.     (find `n')
  25.     (move `r' 1)
  26. })
  27.  
  28.